package com.lin.cloud.disk.entity.response;

import com.lin.cloud.disk.entity.dto.CompanyDTO;
import com.lin.cloud.disk.entity.dto.DepartmentDTO;
import com.lin.cloud.disk.entity.dto.PermissionDTO;
import com.lin.cloud.disk.entity.dto.UserDTO;
import com.lin.cloud.disk.entity.pojo.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Set;

/**
 * 用户信息相应类 通过Token获取
 * @author ljc
 * @date 2020/12/11 22:59
 */
@Data
public class UserInfoByTokenResponse {

    @ApiModelProperty(value = "用户ID", name = "userId")
    private Long userId;

    @ApiModelProperty(value = "部门列表", name = "departments")
    private List<DepartmentDTO> departmentDTOList;

    @ApiModelProperty(value = "权限列表", name = "permissions")
    private PermissionGroupListResponse permissionsList;

    @ApiModelProperty(value = "用户信息", name = "user")
    private UserDTO userDTO;

    @ApiModelProperty(value = "公司主体信息", name = "company")
    private CompanyDTO companyDTO;

}
